package com.scala.oop.classDemo

/**
 * Created by Administrator on 2018/1/27/027.
 */
class ConstructorDemo {

  private var name = ""
  private var age = 0

  def this(name:String){
    this()
    this.name = name
  }
  def this(name:String,age:Int){
    this(name)
    this.age = age
  }
}
